package cn.ronghuanet.base.utils;

/*
    用来封装操作的返回值
 */


public class AjaxResult {
    private Boolean success=true;
    private String msg="操作成功";
    private Object data;


    public static AjaxResult me(){
       return new AjaxResult();
    }

    public Boolean getSuccess() {
        return success;
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return  this;
    }

    public String getMsg() {
        return msg;
    }

    public AjaxResult setMsg(String msg) {
        this.msg = msg;
        return  this;
    }

    public Object getData() {
        return data;
    }

    public AjaxResult setData(Object data) {
        this.data = data;
        return  this;
    }
}
